package com.zjitc.model;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 14:48
 * @description:
 */
public class Orderitem {
  private Integer itemid;
  private Integer count;
  private double subtotal;

  @Override
  public String toString() {
    return "Orderitem{" +
        "itemid=" + itemid +
        ", count=" + count +
        ", subtotal=" + subtotal +
        ", osatate=" + osatate +
        ", product=" + product +
        ", order=" + order +
        '}';
  }

  private Integer osatate;

  public Integer getItemid() {
    return itemid;
  }

  public void setItemid(Integer itemid) {
    this.itemid = itemid;
  }

  public Integer getCount() {
    return count;
  }

  public void setCount(Integer count) {
    this.count = count;
  }

  public double getSubtotal() {
    return subtotal;
  }

  public void setSubtotal(double subtotal) {
    this.subtotal = subtotal;
  }

  public Integer getOsatate() {
    return osatate;
  }

  public void setOsatate(Integer osatate) {
    this.osatate = osatate;
  }

  public Product getProduct() {
    return product;
  }

  public void setProduct(Product product) {
    this.product = product;
  }

  public Order getOrder() {
    return order;
  }

  public void setOrder(Order order) {
    this.order = order;
  }

  public Orderitem(Integer itemid, Integer count, double subtotal, Integer osatate,
      Product product, Order order) {
    this.itemid = itemid;
    this.count = count;
    this.subtotal = subtotal;
    this.osatate = osatate;
    this.product = product;
    this.order = order;
  }

  public Orderitem() {
  }

  private Product product;
  private Order order;

}
